package com.kangyi.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author Blank
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "预约分页查询传回数据格式")
public class NursingHomeBookingPageQueryDTO implements Serializable {

    @ApiModelProperty("养老院id")
    private Integer nursingHomeId;

    @ApiModelProperty("申请人姓名")
    private String name;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("参观日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate bookingTime;

    @ApiModelProperty("状态：0待审核，1同意，2拒绝，3取消")
    private Integer status;

    @ApiModelProperty("页码")
    private Integer page;

    @ApiModelProperty("数量")
    private Integer pageSize;
}
